package com.zros.modules.business.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 报名课程表
 * </p>
 *
 * @author pangyinqiang
 * @since 2019-04-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_info_enroll_course")
@ApiModel(value="EnrollCourse对象", description="报名课程表")
public class EnrollCourse extends Model<EnrollCourse> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "enroll_course_id", type = IdType.ID_WORKER)
    private Long enrollCourseId;

    @ApiModelProperty(value = "线索id")
    private Long clueId;

    @ApiModelProperty(value = "课程id")
    private Long courseId;
    

    @ApiModelProperty(value = "报名金额")
    private BigDecimal enrolPrice;

    @ApiModelProperty(value = "报名日期")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private LocalDate enrollTime;

    @ApiModelProperty(value = "材料费")
    private BigDecimal materialCost;

    @ApiModelProperty(value = "课时")
    private BigDecimal courseTime;

    @ApiModelProperty(value = "赠送课时")
    private BigDecimal extraCourseTime;

    @ApiModelProperty(value = "创建者")
    private Long creator;

    @ApiModelProperty(value = "创建记录时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    private Long operator;

    @ApiModelProperty(value = "更新记录时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除标记 0:未删除 1:已删除")
    @TableLogic
    private String delFlag;

    @ApiModelProperty(value = "备注")
    private String remark;


    @Override
    protected Serializable pkVal() {
        return this.enrollCourseId;
    }

}
